package com.audaque.jadmin.system.dao.mybatis;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.audaque.jadmin.common.mapper.SuperMapper;
import com.audaque.jadmin.system.model.Resource;
import com.audaque.jadmin.system.model.Role;

public interface ResourceMapper extends SuperMapper<Resource> {

	List<Resource> queryByUserId(int userId);

	List<Resource> queryByRoleIds(@Param("roles") List<Role> roles);
}